    <link rel="stylesheet" href="assets/admin/css/compiled/user-list.css" type="text/css" media="screen" />
    <!-- main container -->
    <div class="content">
        
        <div class="container-fluid">
            <div id="pad-wrapper" class="users-list">
                <div class="row-fluid header">
                    <h3>订单列表</h3>
                    <div class="span10 pull-right">
<!--                        <a href="<?php echo yii\helpers\Url::to(['product/add']) ?>" class="btn-flat success pull-right">
                            <span>&#43;</span>
                            
                        </a>-->
                    </div>
                </div>

                <!-- Users table -->
                <div class="row-fluid table">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th class="span2 sortable">
                                    <span class="line"></span>订单编号
                                </th>
                                <th class="span2 sortable">
                                    <span class="line"></span>下单人
                                </th>
                                <th class="span6 sortable">
                                    <span class="line"></span>收货地址
                                </th>
                                <th class="span2 sortable">
                                    <span class="line"></span>快递方式
                                </th>
                                <th class="span2 sortable">
                                    <span class="line"></span>订单总价
                                </th>
                                <th class="span3 sortable">
                                    <span class="line"></span>商品列表
                                </th>
                                <th class="span2 sortable">
                                    <span class="line"></span>订单状态
                                </th>

                                <th class="span3 sortable align-right">
                                    <span class="line"></span>操作
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                        <!-- row -->
                        <?php foreach($orders as $order): ?>
                        <tr class="first">
                            <td>
                                <?php echo $order->orderid; ?>
                            </td>
                            <td>
                                <?php echo $order->username; ?>
                            </td>
                            <td>
                                <?php echo $order->address; ?>
                            </td>
                            <td>
                                <?php echo $order->expressid ? Yii::$app->params['express'][$order->expressid] :"免邮"?>
                            </td>
                            <td>
                                <?php echo $order->amount?>
                            </td>
                            <td>
                                <?php foreach ($order->products as $product): ?>
                                <?php echo $product->num?> X <a href="<?php echo \yii\helpers\Url::to(['/product/detail','productid'=>$product->productid])?>"><?php echo $product->title?></a>
                                <?php endforeach;?>
                            </td>
                            <td>
                               <?php echo \app\models\Order::$statcs[$order->status]?>
                            </td>

                            <td class="align-right">
                                <?php if($order->status==202):?>
                                <a href="<?= \yii\helpers\Url::to(['order/send','orderid'=>$order->orderid])?>">发货</a>
                                <?php endif;?>
                            <a href="<?php echo yii\helpers\Url::to(['order/detail', 'orderid' => $order->orderid]); ?>">查看</a>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
                <div class="pagination pull-right">
                    <?php echo yii\widgets\LinkPager::widget([
                        'pagination' => $pager,
                        'prevPageLabel' => '&#8249;',
                        'nextPageLabel' => '&#8250;',
                    ]); ?>
                </div>
                <!-- end users table -->
            </div>
        </div>
    </div>
    <!-- end main container -->
